home *** CD-ROM | disk | FTP | other *** search
- global gDragging, gDifficulty
-
- on keyUp
- if charToNum(the key) = 27 then
- Abwischen()
- go("Wett", "WD.dir")
- end if
- end
-
- on mouseDown
- if rollOver(16) then
- set gDragging to 1
- setCursor(["CursorGrabbed", "CursorGrabbedMask"])
- end if
- end
-
- on mouseUp
- if gDragging then
- set gDragging to 0
- resetCursor()
- end if
- end
-
- on exitFrame
- if gDragging then
- if (the mouseH < (the locH of sprite 16 - (74 / 2))) and (the frame > label("SchwM1")) then
- playsound(2, "SchiebeRegler")
- set gDifficulty to gDifficulty - 1
- go(the frame - 1)
- else
- if (the mouseH > (the locH of sprite 16 + (74 / 2))) and (the frame < (label("SchwM1") + 6)) then
- playsound(2, "SchiebeRegler")
- set gDifficulty to gDifficulty + 1
- go(the frame + 1)
- else
- go(the frame)
- end if
- end if
- else
- go(the frame)
- end if
- end
-